package cn.stylefeng.guns.modular.system.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 客户信息，和详细地址联系方式等
 * </p>
 *
 * @author zxs
 * @since 2019-06-24
 */
@TableName("customer_management")
public class Customer implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long Id;

    /**
     * 客户姓名
     */
    @TableField("name")
    private String Name;

    /**
     * 客户手机号
     */
    @TableField("mobile")
    private Long Mobile;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 客户的详细地址
     */
    @TableField("address")
    private String Address;

    /**
     * 信誉等级0正常，1为危险客户，2为黑名单客户
     */
    @TableField("status")
    private String Status;
    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT)
    private Date updateTime;


    public Long getId() {
        return Id;
    }

    public void setId(Long id) {
        Id = id;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public Long getMobile() {
        return Mobile;
    }

    public void setMobile(Long mobile) {
        Mobile = mobile;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getAddress() {
        return Address;
    }

    public void setAddress(String address) {
        Address = address;
    }

    public String getStatus() {
        return Status;
    }

    public void setStatus(String status) {
        Status = status;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "Id=" + Id +
                ", Name='" + Name + '\'' +
                ", Mobile=" + Mobile +
                ", createTime=" + createTime +
                ", Address='" + Address + '\'' +
                ", Status='" + Status + '\'' +
                ", updateTime=" + updateTime +
                '}';
    }
}
